var express=require('express');
var moment = require('moment');
var request = require("request");
var util = require("./util");
var cache = require('memory-cache');
var app = express.Router();

/*直通车产品详情*/
app.get("/productDetails.shtml", function(req, res) {
	console.log(req.query)
  util.getJson({
    params: {
      url: "/express/client/tourist/"+req.query.templateId
    },
    headers: {
      'content-type': 'application/x-www-form-urlencoded'
    }
  }, req, res)
})
/*直通车退票规则*/
app.get("/ruleOfRefund.shtml", function(req, res) {
	console.log(req.query)
  util.getJson({
    params: {
      url: "/express/client/clause/"+req.query.expressId
    },
    headers: {
      'content-type': 'application/x-www-form-urlencoded'
    }
  }, req, res)
})
module.exports=app;
